package com.kaibes.core.base.thread;

import java.util.concurrent.atomic.AtomicBoolean;

public abstract class TimingThreadImpl implements TimingThread {

    private long taskTime, interval, count;
    
    private AtomicBoolean flag = new AtomicBoolean();
    
    @Override
    public void setTaskTime(long taskTime) {
        this.taskTime = taskTime;
    }
    
    @Override
    public void setInterval(long interval) {
        this.interval = interval;
    }
    
    @Override
    public long getTaskTime() {
        return taskTime;
    }

    @Override
    public long getInterval() {
        return interval;
    }

    @Override
    public long getCount() {
        return count;
    }

    @Override
    public void setCount(long count) {
        this.count = count;
    }

    @Override
    public AtomicBoolean getFlag() {
        return flag;
    }

}
